package com.rw.entity;

public class User {

    private Integer age;
    private String[] name;
    private String sex;
    private Long id;

    public User(Integer age, String[] name, String sex, Long id) {
        this.age = age;
        this.name = name;
        this.sex = sex;
        this.id = id;
    }

    public User(){

    }

    public String[] getName() {
        return name;
    }

    public void setName(String[] name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }



    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Override
    public String toString() {
        return "User{" +
                "age=" + age +
                ", name='" + name[0] + '\'' +
                ", sex='" + sex + '\'' +
                ", id=" + id +
                '}';
    }
}
